/*
 * @Description: 
 * @Date: 2025-08-15 10:06:26
 * @LastEditTime: 2025-09-29 09:29:37
 */
/*
 * @Description: 
 * @Date: 2025-08-15 10:06:26
 * @LastEditTime: 2025-09-28 16:28:40
 */
import request from "../utils/request";

export function login(data) {
  return request({
    url: "/user/login",
    method: "post",
    data,
  });
}

export function loginByPhone(data) {
  return request({
    url: "/corpuser/login",
    method: "post",
    data,
  });
}

export function getInfo(token) {
  return request({
    url: "/user/info",
    method: "get",
  });
}

export function generateSSOToken(data) {
    return request({
        url: "/sysuser/generateSSOToken",
        method: "post",
        data
    });
}

export function logout(token) {
  return request({
    url: "/user/userLogout",
    method: "post",
    data: {
      token,
    },
  });
}

export function modifyPassword(data) {
  return request({
    url: "/user/changePassword",
    method: "post",
    data,
  });
}

export function ssoLogin(data) {
  return request({
    url: "/user/sso/login",
    // url: "/user/sso/testLogin",
    method: "post",
    data,
  })
}

export function zqtSsoLogin(data) {
  return request({
    url: "/user/zqtSsoLogin",
    method: "post",
    data
  });
}

export function getUserInfo(data) {
  return request({
    url: "/smart-agent/sceneChat",
    method: "post",
    data
  });
}

export function getPhone(data) {
  return request({
    url: "/busiluckmobile/queryAvailableByPattern",
    method: "post",
    data
  });
}

///busiluckmobile/queryAvailableByPattern